package com.summatech.gwt.mvp.client.view;

import com.google.gwt.core.client.GWT;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.InlineLabel;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.Widget;
import com.summatech.gwt.mvp.client.presenter.ReceiverPresenter.IReceiverView;

public class ReceiverView extends Composite implements IReceiverView {

	private static ReceiverViewUiBinder uiBinder = GWT
			.create(ReceiverViewUiBinder.class);

	@UiField
	InlineLabel lblGroup;
	@UiField
	Label lblReceivedValue;
	
	
	interface ReceiverViewUiBinder extends UiBinder<Widget, ReceiverView> {
	}

	public ReceiverView() {
		initWidget(uiBinder.createAndBindUi(this));
	}

	public void showGroup(String group) {
		lblGroup.setText(group);
		addStyleName(group);
	}

	public void setReceivedValue(String value) {
		lblReceivedValue.setText(value);
	}

}
